package ua.lviv.franko.integration;

public class ConstantFunction1D implements IFunction1D {
	private double	val;

	public ConstantFunction1D(double val) {
		this.val = val;
	}

	@Override
	public double calculateDerivaty(double x) {
		throw new UnsupportedOperationException();
	}

	@Override
	public double calculate(double x) {
		return val;
	}

}
